package org.example.myleet.p1302;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(15 == solution.deepestLeavesSum(Parser.parse(new Integer[]{1,2,3,4,5,null,6,7,null,null,null,null,8})));
        Assert.isTrue(19 == solution.deepestLeavesSum(Parser.parse(new Integer[]{6,7,8,2,7,1,3,9,null,1,4,null,null,null,5})));
    }
}
